package com.zhang.img;

public class RemoveAllNumbers {
    public static void main(String[] args) {
        String input1 = "1.制造业";
        String input2 = "六、工业";
        String input3 = "十一、非金属行业";

        String result1 = removeNumber(input1);
        String result2 = removeNumber(input2);
        String result3 = removeNumber(input3);

        System.out.println(result1);
        System.out.println(result2);
        System.out.println(result3);
    }
    public static String removeNumber(String input) {
        // 使用正则表达式去掉字符串中的序号
        String result = input.replaceAll("[0-9一二三四五六七八九十]+[.、]", "");
        return result;
    }
}
